(function(){
var line_library=echarts.init(document.getElementById("line_library"));
option = {
    title: {
        text: '近一周图书馆在线人数'
    },
    tooltip: {
        trigger: 'axis'
    },
    legend: {
        data:['图书馆在线人数']
    },
    grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    // toolbox: {
    //     feature: {
    //         saveAsImage: {}
    //     }
    // },
    xAxis: {
        type: 'category',
        boundaryGap: false,
        data: ['周一','周二','周三','周四','周五','周六','周日']
    },
    yAxis: {
        type: 'value'
    },
    series: [
        {
            name:'图书馆在线人数',
            type:'line',
            stack: '总量',
            data:[125,152,268,254,246,335,265]
        }
    ]
};
line_library.setOption(option);
})();